﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Mysoft.Rpa.ControlWeb.Models.Api
{
    /// <summary>
    /// API接口返回包装类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [Serializable]
    public class HttpRequestResult<T>
    {
        /// <summary>
        /// 是否有错误
        /// </summary>
        public bool HasError { get; set; }
        /// <summary>
        /// 错误消息
        /// </summary>
        public string Error { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public T Data { get; set; }
    }
}
